<?php
$this->breadcrumbs = array(
	'供货商列表' => array(
		'index'
	),
	$model->name,
);
if (Yii::app()->user->checkAccess('merchantManage')) {
	$this->userActions = array(
		array(
			'label' => '新建供货商',
			'url' => array(
				'create'
			)
		),
		array(
			'label' => '更新 '.$model->name,
			'url' => array(
				'update',
				'id' => $model->id
			)
		),
		array(
			'label' => '删除 '.$model->name,
			'url' => '#',
			'linkOptions' => array(
				'submit' => array(
					'delete',
					'id' => $model->id
				),
				'confirm' => '确定要删除供货商 '.$model->name.' ？',
			)
		),
		array(
			'label' => '管理供货商',
			'url' => array(
				'admin'
			)
		),
	);
}
?>

<h1>查看 <?php echo $model->name; ?></h1>
<?php $this
	->widget('zii.widgets.CDetailView',
		array(
			'data' => $model,
			'attributes' => array(
				'id',
				'name',
				'address',
				'phone',
				'fax',
				'companyQQ',
				'companyEmail',
				'otherName',
				'bossName',
				'bossPhone',
				'contactName',
				'contactPhone',
				'serviceScope',
				'note',
				'createTime',
				'createUserId',
				'updateTime',
				'updateUserId',
			),
		));
?>
